<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="contest">

<div style="text-align:center; width:100%;">
			<div style="padding-bottom:10px;padding-top:10px; border-bottom: 1px solid lightgrey; border-top: 1px solid grey;"><a style="text-decoration:none;" href="/gallery/activitiesTop1000.aspx">Foto degli eventi</a></div>

			<xsl:for-each select="pic[position() &lt; 4]">

			<div><a href="/gallery/activitiesTop1000.aspx"><img border="0" src="http://imgs.goparty.it/gallery/thumb/{@picname}"/></a></div>

			</xsl:for-each>

			<div style="text-align:right; padding-bottom:10px;"><a style="text-decoration:underline;" href="/gallery/activitiesTop1000.aspx">segue...</a></div>
</div>

</xsl:template>

</xsl:stylesheet>